<template>
    <view>
    <view>测试数据仓库</view>
    <view>count:{{ counter.count }}</view>
    <view>double:{{ counter.double }}</view>
    <view @click="counter.addAge">info:{{ counter.info }}</view>
    <button @click="counter.increment()">累加</button>
    <button @click="counter.decrement()">递减</button>
  </view>
  </template>
  
  <script setup lang="ts">
  import { useCounterStore } from '@/stores/counter'

const counter = useCounterStore()
</script>
  
  <style></style>